package com.dongdongshop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//@Data
//@AllArgsConstructor
@Document(collection= "comment")  //comment表
public class common implements Serializable {

    @Id
    private String id;

    private String loginUser;

    private String orderId;

    private String title;

    private String grade;

    private String image;

    private String video;

    private int num;

    private String date;

    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(String loginUser) {
        this.loginUser = loginUser;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public common(String id, String loginUser, String orderId, String title, String grade, String image, String video, int num, String date, String status) {
        this.id = id;
        this.loginUser = loginUser;
        this.orderId = orderId;
        this.title = title;
        this.grade = grade;
        this.image = image;
        this.video = video;
        this.num = num;
        this.date = date;
        this.status = status;
    }

    @Override
    public String toString() {
        return "common{" +
                "id='" + id + '\'' +
                ", loginUser='" + loginUser + '\'' +
                ", orderId='" + orderId + '\'' +
                ", title='" + title + '\'' +
                ", grade='" + grade + '\'' +
                ", image='" + image + '\'' +
                ", video='" + video + '\'' +
                ", num=" + num +
                ", date='" + date + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
